package com.iot08.common.entity.admin;

import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

@Data
@Document("mob_notify")
public class MobNotify implements Serializable {
    private static final long serialVersionUID = 1L;

    @Field("_id")
    private String id;

    private String title;

    private String content;

    //类型；1=内部跳转；2=小程序；3=公众号；4=广告SDK; 5=文字通知；
    private Integer type;

    //链接
    private String link;

    //小程序ID
    @Field("small_program_id")
    private String smallProgramId;
    //小程序跳转的商品ID
    @Field("small_program_path")
    private String smallProgramPath;

    //按钮底图的完整URL连接
    @Field("bottom_btn_image")
    private String bottomBtnImage;
    //包含二维码的图的完整URL连接
    @Field("include_QRcode_image")
    private String includeQRcodeImage;
    //点击按钮图片,截图提示跳转的内容
    @Field("jump_tips_words")
    private String jumpTipsWords;

    //广告商
    @Field("advert_firm")
    private String advertFirm;

    private String creator;

    //0=正常；1=删除
    private Integer deleted;

    @Field("create_time")
    private Date createTime;

    @Field("update_time")
    private Date updateTime;

    @Transient
    private SysUser creatorUser;

}
